home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204fd.lzh / iffparse_lib.fd < prev    next >
Text File  |  1991-03-14  |  2KB  |  59 lines

  1. * "iffparse.library"
  2. ##base _IFFParseBase
  3. ##bias 30
  4. ##public
  5. *--- functions in V33 or higher (distributed as Release 1.2) ---
  6. *------ Basic functions ------
  7. AllocIFF()()
  8. OpenIFF(iff,rwMode)(a0,d0)
  9. ParseIFF(iff,control)(a0,d0)
  10. CloseIFF(iff)(a0)
  11. FreeIFF(iff)(a0)
  12. *------ Read/Write functions ------
  13. ReadChunkBytes(iff,buf,size)(a0/a1,d0)
  14. WriteChunkBytes(iff,buf,size)(a0/a1,d0)
  15. ReadChunkRecords(iff,buf,bytesPerRecord,nRecords)(a0/a1,d0/d1)
  16. WriteChunkRecords(iff,buf,bytesPerRecord,nRecords)(a0/a1,d0/d1)
  17. *------ Context entry/exit ------
  18. PushChunk(iff,type,id,size)(a0,d0/d1/d2)
  19. PopChunk(iff)(a0)
  20. *--- (1 function slot reserved here) ---
  21. ##bias 102
  22. *------ Low-level handler installation ------
  23. EntryHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
  24. ExitHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
  25. *------ Built-in chunk/property handlers ------
  26. PropChunk(iff,type,id)(a0,d0/d1)
  27. PropChunks(iff,propArray,nProps)(a0/a1,d0)
  28. StopChunk(iff,type,id)(a0,d0/d1)
  29. StopChunks(iff,propArray,nProps)(a0/a1,d0)
  30. CollectionChunk(iff,type,id)(a0,d0/d1)
  31. CollectionChunks(iff,propArray,nProps)(a0/a1,d0)
  32. StopOnExit(iff,type,id)(a0,d0/d1)
  33. *------ Context utilities ------
  34. FindProp(iff,type,id)(a0,d0/d1)
  35. FindCollection(iff,type,id)(a0,d0/d1)
  36. FindPropContext(iff)(a0)
  37. CurrentChunk(iff)(a0)
  38. ParentChunk(contextNode)(a0)
  39. *------ LocalContextItem support functions ------
  40. AllocLocalItem(type,id,ident,dataSize)(d0/d1/d2/d3)
  41. LocalItemData(localItem)(a0)
  42. SetLocalItemPurge(localItem,purgeHook)(a0/a1)
  43. FreeLocalItem(localItem)(a0)
  44. FindLocalItem(iff,type,id,ident)(a0,d0/d1/d2)
  45. StoreLocalItem(iff,localItem,position)(a0/a1,d0)
  46. StoreItemInContext(iff,localItem,contextNode)(a0/a1/a2)
  47. *------ IFFHandle initialization ------
  48. InitIFF(iff,flags,streamHook)(a0,d0/a1)
  49. InitIFFasDOS(iff)(a0)
  50. InitIFFasClip(iff)(a0)
  51. *------ Internal clipboard support ------
  52. OpenClipboard(unitNum)(d0)
  53. CloseClipboard(clipboard)(a0)
  54. *------ Miscellaneous ------
  55. GoodID(id)(d0)
  56. GoodType(type)(d0)
  57. IDtoStr(id,buf)(d0/a0)
  58. ##end
  59.